<template>
  <div class="application-item-box" :class="{ firstList: indexMark == 0 }">
    <div class="item-box-contant typeCloud">
      <div class="box-left">
        <van-image
          width="106"
          height="106"
          radius="14"
          src="https://is4-ssl.mzstatic.com/image/thumb/Purple124/v4/08/92/96/08929685-2bf2-e835-4174-7f27289ef8af/mzl.iaweffet.jpg/520x924bb.jpg"
        />
      </div>

      <div class="box-center">
        <div>
          <div class="box-center-top">王者荣耀王者荣耀王者荣耀王者荣耀</div>
          <div
            class="box-center-bottom"
            :style="{
              color: textColor,
            }"
          >
            空岛集结
          </div>
        </div>
        <div>
          <van-button type="primary" size="small" :color="buttonColo" class="down-btn" round
            >获取</van-button
          >
        </div>
      </div>
    </div>

    <!-- <div class="box-right">
        <van-button type="primary" size="small" :color="buttonColo" class="down-btn" round
          >获取</van-button
        >
      </div> -->
  </div>
</template>

<script setup>
const props = defineProps({
  buttonColo: {
    type: String,
    default: '', //按钮颜色
  },

  textColor: {
    type: String,
    default: 'fff', //文本颜色高度
  },
  indexMark: {
    default: '', //文本颜色高度
  },
})
</script>

<style lang="scss" scoped>
.application-item-box {
  // display: flex;
  // align-items: center;
  .item-box-contant {
    display: flex;
    // align-items: center;
    width: 100%;
  }

  .box-left {
    width: 80px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .typeCloud {
    margin: 0px 0 10px 0;
  }
  .typeCloud .box-left {
    display: flex;
    justify-content: center;
    justify-content: flex-start;
    width: auto;
    margin-right: 12px;
  }

  .typeCloud .box-right {
    width: auto;
  }
  .box-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid #f2f3f5;
    padding-top: 6px;

    .box-center-top {
      font-weight: bold;
      margin-top: 4px;
      margin-bottom: 4px;
      font-size: 18px;
    }
    .box-center-bottom {
      font-size: 14px;
      color: var(--op-gray-font-color);
    }
  }

  .box-right {
    width: 90px;
  }
  .down-btn {
    padding: 0px 16px !important;
    font-size: 14px;
    // color: #0d7ffe !important;
    font-weight: bold;
    margin-top: 12px;
  }
  .white-color {
    color: #fff;
  }
}

.firstList {
  .box-center {
    border-top: none !important;
  }
}
</style>
